package net.sevear.chaos.event
{
	import flash.events.Event;
	import flash.utils.Dictionary;
	
	import net.sevear.chaos.vo.ChaosErrMsgConfig;

	public class ChaosErrorEvent extends Event
	{
		public static const CHAOS_ERR:String = "Chaos err happened";
		
		private var _code:int;
		private var _msg:String = "";
		private var _content:String = "";
		public function ChaosErrorEvent(errcode:int,msg:String = "",content:String = "")
		{
			_code = errcode;
			if(ChaosErrMsgConfig.getInstance().ERR_MSG[errcode]!=null){
				_msg = ChaosErrMsgConfig.getInstance().ERR_MSG[errcode] as String;
			}
			_content = content;
			super(CHAOS_ERR,false,false);
		}
		
		public function get errcode():int{
			return _code;
		}
		
		public function get msg():String{
			return _msg;
		}
		
		public function get content():String{
			return _content;
		}
	}
}